import request from "@/utils/request"

export const getAllApi = (companyName, linkUser, pageNum, pageSize) => {
  return request.get(`/logisticsCompany?companyName=${companyName}&linkUser=${linkUser}&pageNum=${pageNum}&pageSize=${pageSize}`)
}
export const addApi = (data) => {
  return request.post(`/logisticsCompany`, data)
}
export const showBackApi = (id) => {
  return request.get(`/logisticsCompany/${id}`)
}
export const updateApi = (data) => {
  return request.put(`/logisticsCompany`, data)
}
export const delApi = (ids) => {
  return request.delete(`/logisticsCompany?ids=${ids}`)
}
export const getInfoApi = () => {
  return request.get(`/logisticsCompany/info`)
}